package com.fowo.api.model.tmp.advertiser.invoices;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 广告发票临时表 导入导出辅助模型 */
@Getter
@Setter
public class TmpAdvertiserInvoicesExcelPo {

  @Size(max = 50, message = "发票编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "发票编号")
  private String invoiceId;

  @Size(max = 50, message = "付款类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "付款类型")
  private String paymentMethod;

  @Size(max = 50, message = "状态长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "状态")
  private String status;

  @Size(max = 50, message = "账单周期开始时间长度不能超过20")
  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "账单周期开始时间")
  private java.util.Date fromDate;

  @Size(max = 50, message = "账单周期结束时间长度不能超过20")
  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "账单周期结束时间")
  private java.util.Date toDate;

  @Size(max = 50, message = "账单金额长度不能超过20")
  @ExcelProperty(value = "账单金额")
  private java.math.BigDecimal amount;

  @Size(max = 50, message = "币种长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "币种")
  private String currency;

  @Size(max = 50, message = "开具时间长度不能超过20")
  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "开具时间")
  private java.util.Date invoiceDate;

  @ExcelProperty(value = "店铺")
  private Long sid;
}
